<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;

class IndexController extends Controller
{
    public function Index()
    {
    	$data = DB::table('category') -> get();
        // dd($data);
        $info = DB::table('categoryinfo')
            -> orderBy('capacity','desc')
            -> get();
        // dd($info);
    	return view('/Home/index', ['data' => $data, 'info' => $info]);
    }
    //用户登录
    public function UserAdmin()
    {
    	return 11111;
    	//return view('Home.UserAdmin');
    }
}